import { Token } from './token.model'
import { Column, Entity } from 'typeorm'

@Entity()
export class UserToken extends Token {
  @Column()
  declare refreshToken: string

  @Column({ type: 'bigint' }) // bigint required by postgres
  declare expiresAt: number
}
